<%@ Page Language="C#" MasterPageFile="~/SMSMasterPage.master" AutoEventWireup="true"
    CodeFile="contacts.aspx.cs" Inherits="images_contacts" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table style="width: 100%">
        <tr>
            <td valign="top">
                <table width="100%" style="border: 0.15em solid #9999AA; height: 400px; font-family: Arial;
                    font-size: 12px;" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="border-right: 1px solid #9999AA; padding-top: 5px; padding-right: 2px;
                            height: 30px;" valign="top" colspan="2" align="right">
                            <asp:TextBox ID="txtSearch" runat="server" CssClass="txt_box" Height="20px" Width="186px"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="txtSearch_TextBoxWatermarkExtender" WatermarkCssClass="txt_Watermark_box"
                                runat="server" Enabled="True" TargetControlID="txtSearch" WatermarkText="Enter Name/Number">
                            </asp:TextBoxWatermarkExtender>
                            <%--    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Search</asp:LinkButton>--%>
                            <asp:Button ID="Button1" runat="server" Text="Search" BackColor="#135DA8" ForeColor="White"
                                OnClick="Button1_Click" Height="26px" />
                            <hr style="margin-bottom: 0px;" />
                        </td>
                    </tr>
                    <tr>
                        <td style="border-right: 1px solid #9999AA;" valign="top" colspan="2">
                            <asp:Label ID="lblResultDelete" runat="server" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="border-right: 1px solid #9999AA; width: 190px;" valign="top">
                            <asp:LinkButton ID="lbtnViewAll" CssClass="list_txt" runat="server" OnClick="lbtnViewAll_Click">View 
                            All Contacts</asp:LinkButton>
                            &nbsp;
                            <asp:Label ID="lbt" runat="server" CssClass="list_txt"></asp:Label>
                            <hr />
                            <asp:ListView ID="lstGroups" runat="server" OnItemCommand="lstGroups_ItemCommand"
                                OnSelectedIndexChanged="lstGroups_SelectedIndexChanged">
                                <LayoutTemplate>
                                    <table runat="server" id="table1" style="margin-left: 2px; width: 100%">
                                        <tr runat="server" id="groupPlaceholder">
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr runat="server" id="tableRow" style="background-color: #EFEFEF;">
                                        <td runat="server" id="itemPlaceholder" />
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <td id="Td1" runat="server">
                                        <asp:LinkButton ID="lbtnSubGroupName" CommandName="GroupName" CommandArgument='<%#Eval("GroupId") %>'
                                            runat="server" Text='<%#Eval("GroupName") %>' CssClass="list_txt"></asp:LinkButton>
                                        &nbsp;
                                        <asp:Label ID="lblgrpid" CommandName="GroupId" CommandArgument='<%#Eval("GroupId") %>'
                                            runat="server" Text='<%#Eval("GroupId") %>' CssClass="list_txt" Visible="false"></asp:Label>
                                        <asp:Label ID="lblSubgroupContacts" runat="server" CssClass="list_txt"></asp:Label>
                                        <asp:Image ID="Image1" runat="server" Width="10px" Height="10px" />
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                            <hr />
                            <table>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnimportcontacts" runat="server" CssClass="list_txt" OnClick="lbtnimportcontacts_Click">Import 
                                        Contacts</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnNewContact" runat="server" OnClick="lbtnNewContact_Click"
                                            CssClass="list_txt">Add New Contact</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnopt" runat="server" CssClass="list_txt" OnClick="lbtnopt_Click">Optout 
                                        Contacts</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnExportContacts" runat="server" CssClass="list_txt" OnClick="lbtnExportContacts_Click">Export 
                                        Contacts</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnMassOptOut" runat="server" CssClass="list_txt" OnClick="lbtnMassOptOut_Click">Mass Delete</asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnMassDelete" runat="server" CssClass="list_txt" OnClick="lbtnMassDelete_Click">Mass Optout</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td valign="top">
                            <div id="dvShowContacts" runat="server">
                                <table cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <table cellpadding="0" cellspacing="0" width="100%" style="border-right: 1px solid #9999AA;
                                                height: 400px;">
                                                <tr>
                                                    <td style="width: 163px; height: 30px;" valign="top">
                                                        <table style="width: 100%; border-bottom: 1px solid #9999AA; height: 20px;">
                                                            <tr>
                                                                <td style="width: 69px;">
                                                                    <asp:LinkButton ID="lbtnSelectAll" runat="server" OnClick="lbtnSelectAll_Click" CssClass="list_txt">Select 
                                                                    All</asp:LinkButton>
                                                                </td>
                                                                <td align="right">
                                                                    <asp:LinkButton ID="lbtnSelectNone" runat="server" OnClick="lbtnSelectNone_Click"
                                                                        CssClass="list_txt">Select None</asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top">
                                                        <div id="dvc" runat="server" style="height: 400px; overflow: auto;">
                                                            <asp:ListView ID="lstContacts" runat="server" OnItemCommand="lstContacts_ItemCommand"
                                                                OnSelectedIndexChanged="lstContacts_SelectedIndexChanged" Style="vertical-align: top;">
                                                                <LayoutTemplate>
                                                                    <table runat="server" width="100%" id="table1">
                                                                        <tr runat="server" id="groupPlaceholder">
                                                                        </tr>
                                                                    </table>
                                                                </LayoutTemplate>
                                                                <GroupTemplate>
                                                                    <tr runat="server" id="tableRow" style="background-color: #EFEFEF;">
                                                                        <td runat="server" id="itemPlaceholder" valign="top" />
                                                                    </tr>
                                                                </GroupTemplate>
                                                                <ItemTemplate>
                                                                    <td id="Td1" runat="server" valign="top">
                                                                        <asp:CheckBox ID="chkContacts" OnCheckedChanged="chkContacts_CheckedChanged" runat="server"
                                                                            AutoPostBack="True" />
                                                                        <asp:LinkButton ID="lbtnContacts" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" CssClass="list_txt"></asp:LinkButton>&nbsp;&nbsp;&nbsp;
                                                                        <asp:LinkButton ID="lbtnName" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" CssClass="list_txt"></asp:LinkButton>
                                                                        <asp:Label ID="lblSubgroupContact" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" Text='<%#Eval("MobileNumber") %>' Style="color: Black; text-decoration: none;
                                                                            font-size: 12px;" Visible="false"></asp:Label>
                                                                    </td>
                                                                </ItemTemplate>
                                                            </asp:ListView>
                                                            <asp:Label ID="lblNoContacts" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td valign="top" align="left" style="width: 260px;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblNotification" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                        <br />
                                                        <div id="dvContact" runat="server" visible="false" style="margin-left: 15px">
                                                            <table width="100%" cellpadding="3" cellspacing="3">
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblFirstName" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                                        &nbsp;<asp:Label ID="lblLastName" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblContactNumber" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblJoiningDate" runat="server" Style="font-family: Arial; font-size: 12px;"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div id="dv1" runat="server">
                                                                            <asp:LinkButton ID="lbtnEdit" runat="server" OnClick="lbtnEdit_Click" CssClass="link_btn2">Edit</asp:LinkButton>
                                                                            &nbsp;|
                                                                            <asp:LinkButton ID="lbtnOptOut" runat="server" OnClick="lbtnOptOut_Click">Opt 
                                                                            Out</asp:LinkButton>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlSubGroups" runat="server" AutoPostBack="True" CssClass="txt_box_Alogin"
                                                                            OnSelectedIndexChanged="ddlSubGroups_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                        <asp:LinkButton ID="lbtnoptedgroup" runat="server" OnClick="lbtnoptedgroup_Click"></asp:LinkButton>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <table cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td>
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    <asp:LinkButton ID="lbtnDeleteContact" runat="server" Style="font-family: Arial;
                                                                                        font-size: 12px; text-decoration: none; color: Black;" OnClick="lbtnDeleteContact_Click"></asp:LinkButton>
                                                                                    <cc1:ConfirmButtonExtender ID="lbtnDeleteContact_ConfirmButtonExtender" runat="server"
                                                                                        ConfirmText="Do you really want to remove the contact from the group?" Enabled="True"
                                                                                        TargetControlID="lbtnDeleteContact">
                                                                                    </cc1:ConfirmButtonExtender>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div style="height: 268px" id="dvUpdateNumber" runat="server" visible="false">
                                                            <table style="width: 100%; margin-left: 15px;">
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        Mobile Number:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtUpdateNumber" runat="server" ReadOnly="True" CssClass="txt_box_Alogin"></asp:TextBox>
                                                                        <cc1:FilteredTextBoxExtender ID="txtUpdateNumber_FilteredTextBoxExtender" runat="server"
                                                                            Enabled="True" FilterType="Numbers" TargetControlID="txtUpdateNumber">
                                                                        </cc1:FilteredTextBoxExtender>
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUpdateNumber"
                                                                            ErrorMessage="Enter contact no." ValidationGroup="a">*</asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        First Name:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtUpdateFirstName" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                                                                        <%--<asp:LinkButton ID="LinkButton1" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" Text='<%#Eval("LastName") %>' CssClass="list_txt"></asp:LinkButton>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        Last Name:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtUpdateLastName" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                                                                        <%--<asp:LinkButton ID="LinkButton1" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" Text='<%#Eval("LastName") %>' CssClass="list_txt"></asp:LinkButton>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        Email:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtUpdateEmailId" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                                                                        <%--<asp:LinkButton ID="LinkButton1" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" Text='<%#Eval("LastName") %>' CssClass="list_txt"></asp:LinkButton>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="lblcnmbrr" runat="server" Visible="False"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 81px">
                                                                        &nbsp;
                                                                    </td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <table style="width: 100%">
                                                            <tr>
                                                                <td style="width: 62px">
                                                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click"
                                                                        ValidationGroup="a" />
                                                                </td>
                                                                <td>
                                                                    <asp:LinkButton ID="lbtnCancelUpdate" runat="server" OnClick="lbtnCancelUpdate_Click"
                                                                        CssClass="link_btn1">Cancel</asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id="dvselectmultiplecontacts" runat="server" visible="false">
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            You have selected more than one user. To move these users to a group, use the menu
                                            below.
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="height: 36px">
                                            <asp:DropDownList ID="ddlMoveMultiplecontacts" runat="server" CssClass="txt_box_Alogin"
                                                AutoPostBack="True" OnSelectedIndexChanged="ddlMoveMultiplecontacts_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="lbtnDeleteMultipleContact" runat="server" Style="font-family: Arial;
                                                            font-size: 12px; text-decoration: none; color: Black;" OnClick="lbtnDeleteMultipleContact_Click"></asp:LinkButton>
                                                        <cc1:ConfirmButtonExtender ID="lbtnDeleteMultipleContact_ConfirmButtonExtender" runat="server"
                                                            ConfirmText="Are you sure you want to delete these cantacts from group?" Enabled="True"
                                                            TargetControlID="lbtnDeleteMultipleContact">
                                                        </cc1:ConfirmButtonExtender>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="lbtnOptoutMultipleContact" runat="server" Style="font-family: Arial;
                                                            font-size: 12px; text-decoration: none; color: Black;" OnClick="lbtnOptoutMultipleContact_Click1"></asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    <div id="dvNewContact" runat="server" visible="false">
        <table style="width: 100%; margin-left: 20px;" cellpadding="5">
            <tr>
                <td style="width: 137px">
                    Mobile Number:
                </td>
                <td>
                    <asp:TextBox ID="txtNewNumber" runat="server" MaxLength="10" CssClass="txt_box_Alogin"></asp:TextBox>
                    <cc1:FilteredTextBoxExtender ID="txtNewNumber_FilteredTextBoxExtender" runat="server"
                        Enabled="True" TargetControlID="txtNewNumber" ValidChars="0123456789">
                    </cc1:FilteredTextBoxExtender>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewNumber"
                        ErrorMessage="Enter conatct no." ValidationGroup="b">*</asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender"
                        runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    First Name:
                </td>
                <td>
                    <asp:TextBox ID="txtNewFirstName" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                    <%--<asp:LinkButton ID="LinkButton1" CommandName="Group" CommandArgument='<%#Eval("groupId") %>'
                                                                            runat="server" Text='<%#Eval("LastName") %>' CssClass="list_txt"></asp:LinkButton>--%>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    Last Name:
                </td>
                <td>
                    <asp:TextBox ID="txtNewLastname" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                                            ControlToValidate="txtUpdateFirstName" ErrorMessage="Enter First Name" 
                                                                            ValidationGroup="a">*</asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    Email:
                </td>
                <td>
                    <asp:TextBox ID="txtNewMailId" runat="server" CssClass="txt_box_Alogin"></asp:TextBox>
                    <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                                            ControlToValidate="txtUpdateLastName" ErrorMessage="Enter Last Name" 
                                                                            ValidationGroup="a">*</asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    Select group:
                </td>
                
                <td>
                    <asp:DropDownList ID="ddlNewSubgroupContact" runat="server" CssClass="txt_box_Alogin">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    &nbsp;
                </td>
                <td>
                    <table style="width: 100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 73px">
                                <asp:Button ID="btnSubmitNewContact" runat="server" OnClick="btnSubmitNewContact_Click"
                                    Text="Submit" ValidationGroup="b" />
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnCancelNewContact" runat="server" OnClick="lbtnCancelNewContact_Click"
                                    CssClass="link_btn1">Cancel</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width: 137px">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div id="dvimportcontacts" runat="server" visible="false">
        <asp:Panel ID="pnlGroupContacts" runat="server" Width="550px">
            <table width="100%">
                <tr>
                    <td>
                        <table width="100%">
                            <tr>
                                <td align="center">
                                    <table cellpadding="2" cellspacing="4">
                                        <tr>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <h3>
                                                    Import Contacts</h3>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Select Group:
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList ID="ddlgrps" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                Select File:
                                            </td>
                                            <td align="left">
                                                <asp:FileUpload ID="FUContacts" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 30px">
                                                <asp:Label ID="Label1" runat="server" Visible="false"></asp:Label>
                                            </td>
                                            <td align="left" style="height: 30px">
                                                <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 30px">
                                                &nbsp;
                                            </td>
                                            <td align="left" style="height: 30px">
                                                Note:- Mobile number should be in international format without<br />
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + sign and zero
                                                before number.<br />
                                                Note:- Only add Mobile Numbers in excel file to upload.
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <div id="dvg" runat="server" style="height: 400px; width: 120px; overflow: auto;">
                                        <asp:GridView ID="gv" runat="server" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid"
                                            BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black">
                                            <RowStyle BackColor="White" />
                                            <FooterStyle BackColor="#CCCCCC" />
                                            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                        </asp:GridView>
                                    </div>
                                    <asp:Label ID="lblmsg" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <table>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnImport" runat="server" OnClick="btnImport_Click" Text="Import"
                                                    Visible="false" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <div id="dvExportContacts" runat="server" visible="false">
        <table width="100%">
            <tr>
                <td align="center">
                    <b>Export Contacts
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="3" cellspacing="3">
                        <tr>
                            <td>
                                Select group:
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlExportGroupContacts" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Button ID="btnExport" runat="server" Text="Export" OnClick="btnExport_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="dvMassoptout" runat="server" visible="false">
        <table width="100%">
            <tr>
                <td align="center">
                    <table cellpadding="2" cellspacing="4">
                        <tr>
                            <td align="left">
                                &nbsp;
                            </td>
                            <td align="left">
                                <h3>
                                    Mass Delete Contacts</h3>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                Select File:
                            </td>
                            <td align="left">
                                <asp:FileUpload ID="FUMassContacts" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                <asp:Label ID="Label2" runat="server" Visible="false"></asp:Label>
                            </td>
                            <td align="left" style="height: 30px">
                                <asp:Button ID="btnMassUpload" runat="server" OnClick="btnMassUpload_Click" Text="Upload &amp; Delete" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                &nbsp;
                            </td>
                            <td align="left" style="height: 30px">
                                Note:- Mobile number should be in international format without<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + sign and zero
                                before number.<br />
                                Note:- Only add Mobile Numbers in excel file to upload.
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="dvMassDelete" runat="server" visible="false">
        <table width="100%">
            <tr>
                <td align="center">
                    <table cellpadding="2" cellspacing="4">
                        <tr>
                            <td align="left">
                                &nbsp;
                            </td>
                            <td align="left">
                                <h3>
                                    Mass Optout Contacts</h3>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                Select File:
                            </td>
                            <td align="left">
                                <asp:FileUpload ID="FUMassDelete" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                <asp:Label ID="lblMO" runat="server" Visible="false"></asp:Label>
                            </td>
                            <td align="left" style="height: 30px">
                                <asp:Button ID="btnMassDelete" runat="server" Text="Upload &amp; Optout" OnClick="btnMassDelete_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                &nbsp;
                            </td>
                            <td align="left" style="height: 30px">
                                Note:- Mobile number should be in international format without<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + sign and zero
                                before number.<br />
                                Note:- Only add Mobile Numbers in excel file to upload.
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </td> </tr> </table> </td> </tr> </table>
</asp:Content>
